package com.coolingme.course;

import com.coolingme.course.courseinterface.ICourse;
import com.coolingme.course.courseinterface.INote;
import com.coolingme.course.courseinterface.IVideo;

/**
 * 对课程抽象的扩展
 *
 * @author wangyue
 * @date 2020-09-20 17:38
 */
public class RefindAbstractCourse extends AbstractCourse {
    /**
     * 也可以自己扩展构造方法
     *
     * @param course ICourse
     * @param note   INote
     * @param video  IVideo
     */
    public RefindAbstractCourse(ICourse course, INote note, IVideo video) {
        super(note, video);
        this.course = course;
    }

    protected ICourse course;

    @Override
    public void show() {
        course.learn();
        super.show();
    }
}
